import { createRouter, createWebHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    redirect: '/vue-flow'
  },
  {
    path: '/vue-flow',
    name: 'VueFlowDemo',
    // route level code-splitting
    // this generates a separate chunk (vue-flow.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "vue-flow" */ '../views/VueFlowDemo.vue')
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
